package com.xsprite.managesys.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.xsprite.managesys.service.ServersManager;
import com.xsprite.managesys.service.XlsxFileManager;

/**
 * Servlet implementation class ToTransferDBServlet
 */
public class ToTransferDBServlet extends BaseServlet {
	private static final long serialVersionUID = 1L;

	@Override
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		super.service(req, resp);
		req.setAttribute("xlsxFiles", XlsxFileManager.getInstance().getBeans());
		req.setAttribute("servers", ServersManager.getInstance().getServerConfigs());
		forwardTo("/view/workbench.jsp");
	}
}
